﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>变量</title>
        <script>
           //声明变量
           var username = 'Tom';
           var password = "123456";
            
           var age = 26;
           var salary = 7961.35;
           var sex = true;  

           var telephone = '13683136622';
           //转义符
           var memory  = 'He said:"I\'m OK"';


          //输出语句(在控制台输出)
         
          console.log(typeof(username));
          console.log(typeof(password));
          console.log(typeof(age));
          console.log(typeof(sex));
          console.log(typeof(telephone));
          console.log(typeof(memory));
     
        </script>
    </head>
    <body>
    </body>
</html>



